/**
  ******************************************************************************
  * @file    spi.h
  * @brief   This file contains all the function prototypes for
  *          the spi.c file
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2023 CIEI.
  * All rights reserved.
  *
  ******************************************************************************
  */
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef _SPI_H
#define _SPI_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "main.h"

/* Configuration defines */
#define SPI_NUM                3

/* Variables */
extern SPI_HandleTypeDef       hspi[SPI_NUM];

/* Prototypes */
void SpiInit(void);

#ifdef __cplusplus
}
#endif
#endif /*__SPI_H */
